@import '../../scss/_var.scss';
@import '../../scss/_mixin.scss';

.section {
  margin-top: 30px;
  background: $color-white;
  box-shadow: 0 0 10px 0 rgba(12,6,12,.1);
  .content-wrap {
    @include clearfix();
    padding: 26px 0;
  }
  .content-item-wrap {
    float: left;
    width: 50%;
    text-align: center;
    &:first-child {
      border-right: 6px solid #e6e6e6;
    }
  }
  .table {
    th {
      border-bottom: 0;
      background-color: #f7f7f7;
      color: #999;
    }
    th, td {
      border: 1px solid #e6e6e6;
    }
  }
}
.section-tit {
  @include clearfix;
  height: 52px;
  color: $color-dark;
  text-indent: 20px;
  background: #f7f7f7;
  span {
    float: left;
    margin-top: 10px;
    width: 50%;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    font-weight: 700;
    &:first-of-type {
      border-right: 6px solid #e6e6e6;
    }
  }
}
.ico {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  margin-top: -4px;
  vertical-align: top;
  background-image: url('./ico_recommend.png');
}
// 商家信息
.recommend {
  @include clearfix();
  padding: 30px 0;
  h3 {
    font-size: 18px;
    color: $color-dark;
    font-weight: 500;
  }
  .fl {
    margin: 76px 0 0 136px;
  }
  .fr {
    margin: 68px 400px 0 0;
  }
  .logo {
    display: inline-block;
    margin-right: 26px;
    vertical-align: top;
    img {
      width: 112px;
      height: 112px;
      border: 2px solid #ebebeb;
      border-radius: 4px;
    }
    p {
      margin-top: 10px;
      cursor: pointer;
      color: $color-gray;
    }
    .ico-edit {
      @extend .ico;
    }
  }
  .company {
    display: inline-block;
    vertical-align: top;
    p {
      margin-top: 10px;
      cursor: pointer;
      color: $color-gray;
    }
    .ico-part {
      @extend .ico;
      background-position: 0 -24px;
    }
  }
  .score {
    h3 {
      margin-bottom: 14px;
    }
    p {
      font-size: 18px;
      color: $color-gray;
      line-height: 34px;
      strong {
        color: $color-main;
      }
    }
    .ico-shop {
      @extend .ico;
      background-position: 0 -48px;
    }
  }
}
// 商品动态
.goods-status {
  .item {
    display: inline-block;
    margin-right: 10%;
    cursor: pointer;
    &:last-child {
      margin-right: 0;
    }
    &.sale i {
      background-position: 0 0;
    }
    &.store i {
      background-position: 0 -88px;
    }
    &.out i {
      background-position: 0 -176px;
    }
    &.wait i {
      background-position: 0 -264px;
    }
    &.send i {
      background-position: 0 -352px;
    }
    &.refund i {
      background-position: 0 -440px;
    }
    em {
      position: absolute;
      right: -12px;
      top: -12px;
      width: 36px;
      height: 36px;
      font-size: 18px;
      line-height: 36px;
      text-align: center;
      color: #fff;
      background: $color-main;
      border-radius: 36px;
      border: 1px solid #fff;
    }
    i {
      position: relative;
      display: inline-block;
      width: 88px;
      height: 88px;
      background-image: url('./ico_home_goods_status.png');
    }
    p {
      padding-top: 16px;
      font-size: 18px;
      color: $color-gray;
    }
  }
}
// 销售统计
.sales-statistics {
  .statistics {
    width: 70%;
    margin: 0 auto;
  }
  .rank {
    width: 90%;
    margin: 0 auto;
    .info {
      text-align: left;
      img {
        display: inline-block;
        width: 34px;
        height: 34px;
        margin-left: 20px;
        vertical-align: middle;
      }
      p {
        @include curoff(100%);
        vertical-align: middle;
        display: inline-block;
        margin-left: 10px;
        max-width: 300px;
      }
    }
  }
}
